package com.tj.collection.db.admin.dao;

import com.tj.collection.db.admin.entity.AuthAdminProductEntity;
import com.tj.collection.db.admin.entity.AuthAdminProductEntityConditions;
import com.tj.collection.common.old.BaseDAO;

import java.util.List;

/**
 * User: fenqiguanjia
 * Date: 2017-07-24
 * Time: 20:14:57.997
 */

public interface AuthAdminProductDao extends BaseDAO<AuthAdminProductEntity, Long, AuthAdminProductEntityConditions> {

    /**
     * @param adminId
     * @return
     */
    List<AuthAdminProductEntity> getListByAdminId(Long adminId);

    /**
     * @param adminId
     * @return
     */
    Boolean deleteByAdminId(Long adminId);

    /**
     * 根据产品类目获取adminId
     *
     * @param productType
     * @return
     */
    List<AuthAdminProductEntity> getAuthAdminProductEntityListByProductType(String productType);


}